﻿using ChiDao.Business.Models.Account;
using ChiDao.Business.Models.Security;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace ChiDao.Business.Service.CommonSupport
{
    /// <summary>
    ///     系统数据（全局）
    /// </summary>
    public class SystemData
    {
        #region 单件实体
        private readonly static SystemData instance = new SystemData();
        public static SystemData Instance
        {
            get
            {
                return instance;
            }
        }
        #endregion

        public SystemData() { }

        /// <summary>
        /// 用户信息（当前登录用户信息）
        /// </summary>
        public Person CurrentUser { get; set; }

        /// <summary>
        /// 所有已定义的菜单权限
        /// </summary>
        public List<MenuInfo> MenuInfoes { get; set; }

        /// <summary>
        /// 所有已定义的功能权限
        /// </summary>
        public List<ActionInfo> ActionInfoes { get; set; }
    }
}